-- GENERATED SPELL FOR [Mistbat] --


function spell0_16353(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16353', 568, 1)
end

function spell1_16353(pUnit, Event) --@Sonic Blast,n/a--
pUnit:FullCastSpellOnTarget(50519,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16353', 2333, 1)
end

function Sorts_16353(pUnit, Event)
local choix_sorts_16353 = math.random(0, 1)
if choix_sorts_16353 == 0 then
pUnit:RegisterEvent('spell0_16353', 1, 1)
end
if choix_sorts_16353 == 1 then
pUnit:RegisterEvent('spell1_16353', 1, 1)
end
end

function mob16353_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16353', math.random(1500, 3000), 1)
end

function mob16353_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16353_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16353_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16353, 1, 'mob16353_Action')
RegisterUnitEvent(16353, 2, 'mob16353_Leave')
RegisterUnitEvent(16353, 3, 'mob16353_Kill')
RegisterUnitEvent(16353, 4, 'mob16353_Die')
